package com.example.demo.node;

/**
 * 删除链表的倒数第N个节点
 *
 * @author GXYH
 * @date 2021/08/13
 */
public class RemoveNthFromEndListNode {
    class ListNode {
        int val;
        ListNode next;

        ListNode(int x) {
            val = x;
            next = null;
        }
    }

    public ListNode removeNthFromEnd(ListNode head, int n) {
        if (head == null || n < 1) {
            return null;
        }
       return null;
    }


}
